package com.jiangore.module.sys.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作日志
 * </p>
 *
 * @author Administrator
 * @since 2020-03-16
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_log")
@ApiModel(value="Log对象", description="操作日志")
public class Log implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String uuid;

    private Integer adminId;

    private String adminName;

    private Integer actionId;

    private String actionCode;

    private String content;

    private String beforeData;

    private String afterData;

    private String ipAddress;

    private String userAgent;

    private Integer enable;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
